# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libspectre
pkgver=0.2.9
pkgrel=2
pkgdesc="Small library for rendering Postscript documents"
arch=('x86_64')
license=('GPL2')
url="https://www.freedesktop.org/wiki/Software/libspectre"
depends=('ghostscript>=9.00')
source=(https://libspectre.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz)
sha512sums=('7c24b5c83c6d356c89417d09dc76566afbe886ec189fe80d030a239c23ad25b061db071768117fa06805aa3d86f749fb232b7491bd7d467f26a40e348e74d5d2')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
